import Mock from ".././bower_components/mockjs/dist/mock.js";
// 定义数据
var Random = Mock.Random
var {
	mydata
} = Mock.mock({
	"mydata|1": [{
		name: "@cname",
		icon: Random.image('70x40', '#48d384', '#ffffff', '我的'),
		AD: Random.dataImage('120x40', '大医小课'),
		user: "@ctitle(2, 5)",
		AD1: Random.image('70x40', '#fdfdfd', '#48d384', '🔣'),
		"listdata|2": [{
			"id|+1": 1,
			user: "@ctitle(2,7)",
			AD: Random.image('70x40', '#fdfdfd', '#48d384', '🔣'),
		}],
		"listinfo|2": [{
			"id|+1": 1,
			user: "@ctitle(2,7)",
			AD: Random.image('70x40', '#fdfdfd', '#48d384', '🔣'),
		}]
	}]
});

// 配置mock路径，请求方式
Mock.mock("/user/data", "get", (data) => {
	return {
		code: 200,
		message: "查询用户信息成功",
		data: mydata,
	};
});
